#include "widget.h"
#include "ui_widget.h"

#include <QIcon>
#include <QDir>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

//    QIcon icon("d:/icon.png");
//    this->setWindowIcon(icon);
    //QString path = QDir::currentPath();
    //ui->label->setText(path);
    QIcon icon(":/icon.png");
    this->setWindowIcon(icon);
}

Widget::~Widget()
{
    delete ui;
}

